package com.jack.hiltsimple.mvvm.model

import com.jack.hiltsimple.third_sdk.ApiResponse
import com.jack.hiltsimple.third_sdk.ApiService
import com.jack.hiltsimple.third_sdk.BanInfos
import jakarta.inject.Inject
import retrofit2.Call

/**
 * @创建者 Jack
 * @创建时间 2025-08-21 16:15
 * @描述
 */
// UserRepository.kt
interface BannerRepository {
    fun getBanner(): Call<ApiResponse<MutableList<BanInfos>>>
}

// BannerRepositoryImpl.kt
class BannerRepositoryImpl @Inject constructor(
    private val apiService: ApiService,
//    private val localDataSource: UserLocalDataSource
) : BannerRepository {
    override fun getBanner(): Call<ApiResponse<MutableList<BanInfos>>> {
        // ... 业务逻辑，比如先查本地，再请求网络
        return apiService.bannerInfos()
    }
}